<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    
    <body>
        
        <ui:composition template="./Template_Admin.xhtml">
            
            <ui:define name="content">
               <h1>Create Car page</h1>
                <h:form id="createcar">
                    <p:fieldset legend="Information Car">
                        <h:panelGrid columns="3" cellpadding="10">
                            <h:outputText value="Car Name "/>
                            <p:inputText id="carname" required="true" />
                            <p:message for="carname" display="icon"/>

                            <h:outputText value="Model "/>
                            <p:inputText id="model" required="true" />
                            <p:message for="model" display="icon"/>

                            <h:outputText value="Type "/>
                            <p:inputText id="type" required="true" />
                            <p:message for="type" display="icon"/>

                            <h:outputText value="Price "/>
                            <p:inputText id="price" required="true" />
                            <p:message for="price" display="icon"/>

                            <h:outputText value="Discount "/>
                            <p:inputText id="discount" required="true" />
                            <p:message for="discount" display="icon"/>

                            <h:outputText value="Image "/>
                            <p:fileUpload fileUploadListener="#{managedBeanAdmin.checkLogin}"
                                              update="images"  sizeLimit="1073741824"
                                              multiple="true" label="Choose File" allowTypes="*.png;*.jpg;*gif"
                                              description="Images"/>
                            <h:outputText value=" "/>

                            <h:outputText value=" "/>
                            <h:selectManyCheckbox>
                                <f:selectItem itemLabel="Seating" itemValue="1"/>
                                <f:selectItem itemLabel="Driver" itemValue="1"/>
                                <f:selectItem itemLabel="Conditione" itemValue="1"/>
                            </h:selectManyCheckbox>
                            <h:outputText value=" "/>
                           
                            <p:commandLink>
                                <p:graphicImage value="images/createCar-Button.png" width="150" height="64" style="border: 0" />
                            </p:commandLink>
                            <p:commandLink>
                                <p:graphicImage value="images/Cancel-Button.png" width="150" height="64" style="border: 0" />
                            </p:commandLink>
                        </h:panelGrid>
                    </p:fieldset>
                </h:form>
            </ui:define>

        </ui:composition>
        
    </body>
</html>
